﻿#region | Copyright © 2556 |

/*
##########################################################################
	Author By : Siriwat Suananpornpanit
	DateTime : 2556/08/30
##########################################################################
*/

#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace Web.Core
{
    public sealed class Script
    {
        public static void ScriptAlert(string val)
        {
            string result = string.Format("<script language='javascript;> alert('{0}'); </script>", val.Replace("'", "''"));
            HttpContext.Current.Response.Write(result);
        }
    }
}